package org.dtrd.modules.system.service;

import com.baomidou.mybatisplus.extension.service.IService;
import org.dtrd.modules.system.entity.bean.qiyeweixin.QwFollowUser;
import org.dtrd.modules.system.entity.po.DtrdEntRdQwClientFollow;
import org.springframework.lang.NonNull;

import java.util.List;

/**
 * @author 萧
 * @date 2021-11-11 10:54:11
 **/
public interface IDtrdEntRdQwClientFollowService extends IService<DtrdEntRdQwClientFollow> {

    /**
     * 保存客户跟进信息
     *
     * @param follow_user
     * @param external_userid
     * @return
     */
    void saveExternalFollowUser(@NonNull List<QwFollowUser> follow_user, String external_userid);

    /**
     * 根据员工id和客户id查询记录
     *
     * @param externalUserid 客户id
     * @param followUserId   跟进员工id
     * @return
     */
    DtrdEntRdQwClientFollow getRecordByExternalUserIdFollowUserId(String externalUserid, String followUserId);

}
